import config from "@/config"
import http from "@/utils/request"

export default {
	getUnit: {
		lists: {
			url: `${config.API_URL}/adminapi/unit.Unit/lists`,
			name: "获取单位列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/unit.Unit/add`,
			name: "添加单位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/unit.Unit/edit`,
			name: "编辑单位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        delete: {
			url: `${config.API_URL}/adminapi/unit.Unit/delete`,
			name: "编辑单位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        detail: {
			url: `${config.API_URL}/adminapi/unit.Unit/detail`,
			name: "单位详情",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
        update_status: {
			url: `${config.API_URL}/adminapi/unit.Unit/updateStatus`,
			name: "编辑单位",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	},
    
}
